
  
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class BeatBar extends JProgressBar implements Runnable{ 
    JProgressBar progressBar;
	Thread thread;
	//BeatModelInterface model;

	public BeatBar( ) {
		//model = beadModel;
		thread = new Thread(this);
		setMaximum(100);
		thread.start();
	}

	public void run() {
		for(;;) {
			int value = getValue();
			value = (int)(value * .75);
			setValue(value);
			repaint();
			try {
				Thread.sleep(50);
			} catch (Exception e) {};
		}
	}

//	@Override
//	public void updateBPM() {
//		// TODO Auto-generated method stub		
//		setValue( model.getBPM());
//	}
}
